package com.naughty.userlogin02.bean;

import java.security.Timestamp;
import java.util.Date;

public class Work {
    private  String wid;
    private  String cid;
    private  String wtitle;
    private  String wcontent;
    private Date wbtime;
    private Date wetime;


    // 构造函数

    public Work() {
    }

    public Work(String wid, String cid, String wtitle, String wcontent, Date wbtime, Date wetime) {
        this.wid = wid;
        this.cid = cid;
        this.wtitle = wtitle;
        this.wcontent = wcontent;
        this.wbtime = wbtime;
        this.wetime = wetime;
    }

    // get and set 方法

    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getWtitle() {
        return wtitle;
    }

    public void setWtitle(String wtitle) {
        this.wtitle = wtitle;
    }

    public String getWcontent() {
        return wcontent;
    }

    public void setWcontent(String wcontent) {
        this.wcontent = wcontent;
    }

    public Date getWbtime() {
        return wbtime;
    }

    public void setWbtime(Date wbtime) {
        this.wbtime = wbtime;
    }

    public Date getWetime() {
        return wetime;
    }

    public void setWetime(Date wetime) {
        this.wetime = wetime;
    }

    //to string方法

    @Override
    public String toString() {
        return "Work{" +
                "wid='" + wid + '\'' +
                ", cid='" + cid + '\'' +
                ", wtitle='" + wtitle + '\'' +
                ", wcontent='" + wcontent + '\'' +
                ", wbtime=" + wbtime +
                ", wetime=" + wetime +
                '}';
    }
}
